using LANLauncher.Properties;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace LANLauncher
{
	public class IdentifierForm : Form
	{
		private IContainer components;

		private Button closeButton;

		public TextBox idTextBox;

		public IdentifierForm()
		{
			this.InitializeComponent();
			this.closeButton.Text = StringLocaliser.LocaliseString("Close", false);
		}

		private void closeButton_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			this.closeButton = new Button();
			this.idTextBox = new TextBox();
			base.SuspendLayout();
			this.closeButton.BackgroundImage = Resources.Button;
			this.closeButton.FlatAppearance.BorderColor = Color.Black;
			this.closeButton.FlatStyle = FlatStyle.Flat;
			this.closeButton.ForeColor = Color.White;
			this.closeButton.Location = new Point(98, 60);
			this.closeButton.Name = "closeButton";
			this.closeButton.Size = new System.Drawing.Size(75, 23);
			this.closeButton.TabIndex = 0;
			this.closeButton.Text = "Close";
			this.closeButton.UseVisualStyleBackColor = true;
			this.closeButton.Click += new EventHandler(this.closeButton_Click);
			this.idTextBox.BackColor = Color.Black;
			this.idTextBox.BorderStyle = BorderStyle.None;
			this.idTextBox.Cursor = Cursors.Default;
			this.idTextBox.Enabled = false;
			this.idTextBox.ForeColor = Color.White;
			this.idTextBox.Location = new Point(23, 12);
			this.idTextBox.Multiline = true;
			this.idTextBox.Name = "idTextBox";
			this.idTextBox.ReadOnly = true;
			this.idTextBox.Size = new System.Drawing.Size(225, 42);
			this.idTextBox.TabIndex = 1;
			this.idTextBox.TextAlign = HorizontalAlignment.Center;
			base.AutoScaleDimensions = new SizeF(6f, 13f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackColor = Color.Black;
			base.ClientSize = new System.Drawing.Size(270, 95);
			base.ControlBox = false;
			base.Controls.Add(this.idTextBox);
			base.Controls.Add(this.closeButton);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "IdentifierForm";
			base.ShowInTaskbar = false;
			base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			base.StartPosition = FormStartPosition.CenterParent;
			base.TopMost = true;
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}